<html>
<head>
  <title>Repeat This NOW</title>
  <script>
function scripttest() {
document.getElementById("goodbutton").disabled = true ;
}
  </script>
</head>


<body>
Welcome {{ user }} ! (<a href="{{ signout }}">sign out</a>)

<form method="post" action="" name="Mioform"><br>

  <textarea onfocus="if (this.value == {{ noreptext }}) this.value=''" cols="50" rows="3" name="question">{{ question }}</textarea><br>


  <br>


&nbsp; <br>


  <input onclick="document.Mioform.goodbutton.disabled=document.Mioform.badbutton.disabled=document.Mioform.sosobutton.disabled=false;document.Mioform.answer.value= '{{ answer }}'" name="showanswer" value="show answer" type="button"><br>


  <br>


  <textarea cols="50" rows="3" name="answer"></textarea><br>


  <input name="key" type="hidden" value = "{{ key }}" ><br>
<input name="archivio" type="hidden" value = "{{ archivio }}" ><br>

  <input disabled="disabled" value="Good" name="Level" id="goodbutton" type="submit">
&nbsp; &nbsp; &nbsp;<input disabled="disabled" value="Soso" name="Level" id="sosobutton" type="submit">
&nbsp; &nbsp; &nbsp;<input disabled="disabled" id="badbutton" name="Level" value="Bad" type="submit">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; <input name="Add" value="Add" onclick="document.Mioform.key.value=''" type="submit">
</form>
<br>
{% for archive in archives %}
{% ifequal archivio archive.0.ref_archivio.archivio %}
<b>
{% endifequal %}
<FORM>{{archive.0.ref_archivio.archivio}} ( {{archive.1}} / {{archive.2}} )    <INPUT TYPE="button" VALUE = "Load Archive" onClick="window.location.href='?archivio={{archive.0.ref_archivio.archivio}}'">  </FORM> 
{% ifequal archivio archive.0.ref_archivio.archivio %}
</b>
{% endifequal %}
{% endfor %}

<form style="height: 39px;" method="post"
 name="NewArchive">Add new archive <input
 name="NewArchive"> &nbsp;&nbsp;<input
 name="AddArchive" value="Add" type="submit">&nbsp;
&nbsp; &nbsp;&nbsp;</form>


</body>
</html>
